def str_reverse(str2):
    return str2[-1:-(len(str2) - 1):-1]


def substr(s, x, y):
    return s[x:y + 1:1]



if __name__ == '__main__':
    print(str_reverse('aushnxkas'))
    print(substr('auhsqwhw', 1, 2))
